<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ include file="header.jsp" %>

	<h3><a href="/shopular/dashboard.do">&lt;</a> Everything you need for a new list:</h3>
	<form method="post" action="/shopular/lists/createList.do">
		<input type="text" name="name" value="Give me a name!"/>
		<br/>
		You like to share this list? No problem:<br/>
		<ul>
			<c:forEach var="user" items="${friends}">
				<input type="checkbox" name="friends" value="${user.name}">${user.name}<br/>
	 		</c:forEach>
	 	</ul>
		<input type="submit" value="Go ahead, create it!"/>
	</form>
	
</body>
</html>